package com.beyondbit.demo.common;

import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @Author: lvfahai
 * @Date: 2020/3/11 11:44
 */
@Component
public class UUIDGenerator implements IdGenerator{
    /**
     * id生成
     * @return
     */
    @Override
    public String newId() {
        return UUID.randomUUID().toString();
    }
}
